<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>QQ注册</title>
    <style>
        *{
            margin: 0%;
            padding: 0;
        }
        #left{
            float: left;
        }
        input{
            border: 1px solid #ccc;
            outline: none;
        }
    </style>
</head>
<body>
    <div class="content">
        <header>
            <img src="image/bg_chs.png" alt="QQ注册">
        </header>
        <div id="left">
            <h3>注册账号</h3>
            <div>
                <label for="nickname">昵称</label>
                <input id="nickname" name="nickname" type="text"  autofocus required pattern="^[-\w\u4E00-\u9FA5]{4,10}$"> 
            </div>
            <div>
                <label for="password">密码</label>
                <input id="password" name="password" type="password"  autofocus required pattern="^[\dA-Za-z]{6,16}$"> 
            </div>
            <div>
                <label for="affirm">确认密码</label>
                <input id="affirm" name="affirm" type="password"  autofocus required pattern="^[\dA-Za-z]{6,16}$">
            </div>
            <div>
                <label for="number">手机号码</label>
                <input id="number" name="number" type="number" min="0" max="9"  autofocus required pattern="^1[358]\d{9}$">
            </div>
            <div>
                <label for="email">邮件</label>
                <input type="email" id="emali" name="email" autofocus required>
            </label>
            <div>
                <label for="">年龄</label>
                <input type="text" id="age" name="age" pattern="^\d|[1-9]\d|1[0-2]\d$">
            </div>
            <footer>
                <input type="image" src="image/btn.bmp"> 
            </footer>
        </div>

    </div>
</body>
</html>